package com.example.dml.singleton_pattern;

/**
 * @description: 饿汉式单例
 * @author: gaoyang
 * @date: 2021/10/23 09:52
 */
public class HungrySingleton {

    private static final HungrySingleton single = new HungrySingleton();

    private HungrySingleton(){

    }

    public static HungrySingleton getInstance(){
        return single;
    }
}
